#define _CRT_SECURE_NO_WARNINGS 1

#include "Sort.h"

void TestSort()
{
	int arr[] = { 3,6,1,8,4,0,9,2,5,7};
	/*InsertSort(arr, sizeof(arr) / sizeof(arr[0]));
	printf("InsertSort:");
	Print(arr, sizeof(arr) / sizeof(arr[0]));*/


	/*ShellSort(arr, sizeof(arr) / sizeof(arr[0]));
	printf("ShellSort:");
	Print(arr, sizeof(arr) / sizeof(arr[0]));*/

	
	/*BubbleSort(arr, sizeof(arr) / sizeof(arr[0]));
	printf("BubbleSort:");
	Print(arr, sizeof(arr) / sizeof(arr[0]));*/

	/*SelectSort1(arr, sizeof(arr) / sizeof(arr[0]));
	printf("SelectSort2:");
	Print(arr, sizeof(arr) / sizeof(arr[0]));*/

	/*HeapSort(arr, sizeof(arr) / sizeof(arr[0]));
	printf("HeapSort:");
	Print(arr, sizeof(arr) / sizeof(arr[0]));*/

	/*PartSort(arr, 0, sizeof(arr) / sizeof(arr[0]) - 1);
	printf("PartSort:");
	Print(arr, sizeof(arr) / sizeof(arr[0]));*/

	/*QuickSort1(arr, 0, sizeof(arr) / sizeof(arr[0]) - 1);
	printf("QuickSort1:");
	Print(arr, sizeof(arr) / sizeof(arr[0]));*/


	/*QuickSortNonR(arr, 0, sizeof(arr) / sizeof(arr[0]) - 1);
	printf("QuickSortNonR:");
	Print(arr, sizeof(arr) / sizeof(arr[0]));*/
	
	/*MergeSort(arr, sizeof(arr) / sizeof(arr[0]));
	printf("MergeSort:");
	Print(arr, sizeof(arr) / sizeof(arr[0]));*/
	
	
	/*MergeSortNonR(arr, sizeof(arr) / sizeof(arr[0]));
	printf("MergeSortNonR:");
	Print(arr, sizeof(arr) / sizeof(arr[0]));*/
	
	
	CountSort(arr, sizeof(arr) / sizeof(arr[0]));
	printf("CountSort:");
	Print(arr, sizeof(arr) / sizeof(arr[0]));

}

int main()
{
	TestSort();
	return 0;
}
